import  axios from "../../axios.js"

//财务类别接口
export default{
  //查询所有
  queryAll(data)
  {
    return axios({
      url:'/serviceCharge/list',
      method:'post',
      data,
    
    })
  },
  
  //新增
  DELETE(data){
    return axios({
      url:'/serviceCharge/delete',
      method:'post',
      data,
    
    })
  },
  //详情
  GETDETAILS(data){
    return axios({
      url:'/serviceCharge/details',
      method:'post',
      data,
    
    })
  },
  //修改保存
  UPDATE(data){
    return axios({
      url:'/serviceCharge/updateServiceChargeDetails',
      method:'post',
      data,
    
    })
  },

   //获取打印数据
   DETAILS_PRINT(data){
    return axios({
      url:'/serviceCharge/dyServiceChargeDetails',
      method:'post',
      data,
    })
  },


   //获取出纳打印数据
   CASHER_DETAILS_PRINT(data){
    return axios({
      url:'/serviceCharge/dingJInToIncome',
      method:'get',
      params:data,
    })
  },

  //服务费打印次数
  PRINT_NUM(data){
    return axios({
      url:'/serviceCharge/incrPrintServiceById',
      method:'get',
      params:data,
    })
  },

   //服务费新增
   PRINT_INSERT(data){
    return axios({
      url:'/serviceCharge/insert',
      method:'post',
      data
    })
  },

  //服务费详情 /serviceCharge/getFbcDetail
  PRINT_details2(data){
    return axios({
      url:'/serviceCharge/getFbcDetail',
      method:'get',
      params:data,
    })
  },
  /**=====================服务费新接口========================== */
  // 所有服务费列表
  getAllList_Api(data){
    return axios({
      url:'/crm/serviceCharge/servicedAll',
      method:'post',
      data,
    })
  },
  // 查询详情
  getDateils_Api(data) {
    return axios({
      url:'/crm/serviceCharge/serviceDetail',
      method:'get',
      params:data,
    })
  },
  // 收取服务费
  getMoney_Api(data) {
    return axios({
      url:'/crm/serviceCharge/serviceDetailAutoInsert',
      method:'post',
      data,
    })
  },
  // 修改
  eidit_Api(data) {
    return axios({
      url:'/crm/serviceCharge/servicedUpdate',
      method:'post',
      data,
    })
  },
  //新增
  add_Api(data) {
    return axios({
      url:'/crm/serviceCharge/servicedInsert',
      method:'post',
      data,
    })
  },
  // 未收取服务费列表
  getUnServiceList_Api(data) {
    return axios({
      url:'/crm/serviceCharge/unService',
      method:'post',
      data,
    })
  },
  // 已收取服务费列表
  getAlerdyServiceList_Api(data) {
    return axios({
      url:'/crm/serviceCharge/serviced',
      method:'post',
      data,
    })
  },
  // 获取报销记录
  getExpenseListApi2(data) {
    return axios({
      url:'/crm/findAllReimbursement2',
      method:'post',
      data,
    })
  },
};
